package com.sfx.admin.common.enums;


import com.sfx.admin.common.convention.errorcode.IErrorCode;

public enum UserErrorCodeEnums implements IErrorCode {
    USER_NOT_EXISTS("B000200", "用户记录不存在"),
    USER_NAME_ALREADY_EXISTS("B000201", "用户名已经存在"),
    USER_ALREADY_EXISTS("B000202", "用户记录已经存在"),
    USER_SAVE_FAIL("B000203", "用户记录保存失败"),
    USER_UPDATE_FAIL("B000204", "用户记录更新失败"),
    USER_ALREADY_LOGIN("B000205", "用户已经登陆"),
    USER_NOT_LOGIN("B000206", "用户未登录"),
    NOT_CUR_USER_UPDATE("B000207", "非当前用户修改"),
    USER_LOGIN_VERIFY_ERROR("B000207", "用户登陆校验失败");

    private final String code;

    private final String message;

    UserErrorCodeEnums(String code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public String code() {
        return code;
    }

    @Override
    public String message() {
        return message;
    }
}